﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="DealDanhSach.aspx.cs" Inherits="Admin_DealDanhSach" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 </div>
       
        <div class="title" style="text-align: center">
            <span style="font-size: 14pt"><strong>
            <span style="color: #ff0000"><em>
            Danh sách Deal</em></span> </strong></span>
        </div>
        <div style="width:100%;">
            <div style="display:table-cell; width:98%;float:left;color: #ff0000;">
               <strong>  Mã Deal
                 <asp:DropDownList ID="ddl_madeal" runat="server">
                </asp:DropDownList>
                Sản Phẩm
                 <asp:DropDownList ID="ddl_sanpham" runat="server">
                </asp:DropDownList>
                Tình Trạng</strong>
                 <asp:DropDownList ID="ddl_tinhtrang" runat="server">
                </asp:DropDownList>
         
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
                 <div class="addnewrow" style="display:table-cell; width:25%;float:right;">
                    <a href="DealThem.aspx"><span style="color: red"><strong>Thêm Deal </strong></span></a> 
                     <span style="color: red"><strong>|</strong></span>
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="True" ForeColor="Red">Xóa</asp:LinkButton>
          </div>
          </div>
        </div>
        <div>
            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="1">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã Deal</th>
                        <th>Sản phẩm</th>
                        <th>Tình Trạng</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
           
              <ItemTemplate>
              <tr>
                <td><%#Eval("MaDeal") %></td>
                <td><asp:Literal ID="lit_SanPham" runat="server"></asp:Literal> </td>
                <td><asp:Literal ID="lit_TinhTrang" runat="server"></asp:Literal> </td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaDeal") %>' runat="server" />
                </td>
                  
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
            </asp:Repeater>
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               
                <cc1:PagerV2_8 ID="Pager" runat="server" OnCommand="Pager_Command1" />
            </div>
        </div>
 
</asp:Content>

